//
// Created by Nasa on 2023/9/16.
// 按,分割string到数组中
//


#include <iostream>
#include <vector>
using namespace std;

int main()
{
    vector<string> l;
    string aa="abc,123,789,nasa,888888888888,abcd";
    int j=0;
    for (int i = 0; i < aa.size(); ++i)
    {
        string b;
        if(aa[i]!=',')
            b=b+aa[i];
        else
            l.push_back(b);
    }
    for (int i = 0; i < l.size(); ++i)
    {
        cout<<l[i]<<' ';
    }
    return 0;
}